/**
 * 基础控件
 */
export const baseControlConfig = [
    {
        key: 'name',
        label: '输入框',
        cmpType: 'common',
        tag: 'Input',
        tagIcon: 'iconprocess_common_name_icon',
        formId: '',
        rules: [
            {
                required: false,
                message: '请输入'
            }
        ],
        options: {
            placeholder: '请输入',
            maxLength: 50,
            allowClear: true
        },
        isSummary: false
    },
    {
        key: 'num',
        label: '数字',
        cmpType: 'common',
        tagIcon: 'iconprocess_common_number_icon',
        tag: 'InputNumber',
        formId: '',
        rules: [
            {
                required: false,
                message: '请输入'
            }
        ],
        // 可以注入antd相应组件的选项
        options: {
            min: -999999999999999,
            max: 999999999999999,
            placeholder: '请输入'
        },
        proCondition: false,
        isUsed: false,
        conditionShowOption: { showType: 'number' },
        isSummary: false
    },
    {
        key: 'Date',
        label: '日期',
        cmpType: 'common',
        dataType: 'year',
        tag: 'Date',
        tagIcon: 'iconprocess_common_date_icon',
        formId: '',
        rules: [
            {
                required: false,
                message: '请选择'
            }
        ],
        options: {
            placeholder: '请选择'
        },
        isSummary: false
    },
    {
        key: 'TextArea',
        label: '文本域',
        cmpType: 'common',
        tag: 'TextArea',
        tagIcon: 'iconprocess_common_textfield_icon',
        formId: '',
        extra: null,
        rules: [
            {
                required: false,
                message: '请输入'
            }
        ],
        options: {
            placeholder: '请输入'
        },
        isSummary: false
    },
    {
        key: 'operType',
        label: '下拉单选',
        tagIcon: 'iconprocess_common_dropdown_icon',
        cmpType: 'common',
        tag: 'Select',
        formId: '',
        dataList: [
            {
                label: '选项1',
                value: '选项1'
            },
            {
                label: '选项2',
                value: '选项2'
            }
        ],
        options: {
            placeholder: '请选择'
        },
        rules: [
            {
                required: false,
                message: '请选择'
            }
        ],
        proCondition: false,
        isUsed: false,
        conditionShowOption: { valueMode: 'multiple', showType: 'select' },
        isSummary: false
    },
    {
        key: 'operType',
        label: '下拉多选',
        cmpType: 'common',
        tag: 'MultipleSelect',
        tagIcon: 'iconprocess_common_multiselect_icon',
        formId: '',
        dataList: [
            {
                label: '选项1',
                value: '选项1'
            },
            {
                label: '选项2',
                value: '选项2'
            }
        ],
        options: {
            mode: 'multiple', // 'multiple' | 'tags' | null
            placeholder: '请选择'
        },
        rules: [
            {
                required: false,
                message: '请选择'
            }
        ],
        proCondition: false,
        isUsed: false,
        conditionShowOption: { valueMode: 'multiple', showType: 'select' },
        isSummary: false
    },
    {
        key: 'Checkbox',
        label: '复选框',
        cmpType: 'common',
        tag: 'CheckboxGroup',
        tagIcon: 'iconprocess_common_checkbox_icon',
        formId: '',
        dataList: [
            {
                label: '选项1',
                value: '选项1'
            },
            {
                label: '选项2',
                value: '选项2'
            }
        ],
        options: {},
        rules: [
            {
                required: false,
                message: '请选择'
            }
        ],
        isSummary: false
    },
    {
        key: 'RadioGroup',
        label: '单选框',
        cmpType: 'common',
        tag: 'RadioGroup',
        tagIcon: 'iconprocess_common_singlebox_icon1',
        formId: '',
        dataList: [
            {
                label: '选项1',
                value: '选项1'
            },
            {
                label: '选项2',
                value: '选项2'
            }
        ],
        options: {},
        rules: [
            {
                required: false,
                message: '请选择'
            }
        ],
        isSummary: false
    },
    {
        label: '金额',
        cmpType: 'common',
        type: 'Amount',
        tag: 'Amount',
        tagIcon: 'iconprocess_common_amount_icon',
        options: {
            placeholder: '请输入'
        },
        rules: [
            {
                required: false,
                message: '请输入'
            }
        ],
        disabled: false,
        required: false,
        proCondition: false,
        conditionShowOption: { showType: 'number' },
        isSummary: false
    },
    {
        key: 'Title',
        label: '标题',
        cmpType: 'common',
        tag: 'Title',
        tagIcon: 'iconprocess_common_title_icon',
        formId: '',
        options: {},
        titleValue: '标题',
        rules: [],
        noValue: true
    },
    {
        label: '附件',
        tag: 'OssUpload',
        key: 'OssUpload',
        options: {},
        cmpType: 'common',
        tagIcon: 'iconprocess_common_annex_icon1',
        rules: [
            {
                required: false,
                message: '请选择附件'
            }
        ],
        name: 'file',
        buttonText: '点击上传附件',
        uploadProps: {
            multiple: true, // 多文件
            dragAble: false, // 是否为拖拽上传
            checkFileSize: 0, // 限制单文件上传最大值，单位为MB
            checkFileType: '', // 允许上传的文件格式
            maxCount: 10, // 上传的文件个数上限
            help: null, // 帮助文案,
            describe: ''
        }
    },
    {
        key: 'RangePicker',
        label: '日期范围',
        cmpType: 'common',
        tag: 'RangePicker',
        tagIcon: 'iconprocess_common_date-range_icon1',
        pickerType: 'yearPricker',
        formId: '',
        options: {},
        rules: [
            {
                required: false,
                message: '请选择'
            }
        ],
        isSummary: false
    },
    {
        key: 'TimePicker',
        label: '时间',
        cmpType: 'common',
        tag: 'TimePicker',
        tagIcon: 'iconprocess_common_time_icon1',
        formId: '',
        options: {},
        rules: [
            {
                required: false,
                message: '请选择'
            }
        ],
        isSummary: false
    },
    {
        key: 'Cascader',
        label: '省市区',
        cmpType: 'common',
        tag: 'Area',
        tagIcon: 'iconprocess_common_govcity_icon',
        formId: '',
        rules: [{ required: false, message: '请选择省市区' }],
        options: {
            placeholder: '请选择省市区'
        },
        isSummary: false
    },
    {
        key: 'TreeSelect',
        label: '行政机构',
        cmpType: 'common',
        tag: 'OrganizationTree',
        tagIcon: 'iconprocess_common_department_icon',
        formId: '',
        rules: [
            {
                required: false,
                message: ' '
            }
        ],
        options: { multiple: false }
    },
    {
        key: 'TreeSelect',
        label: '组织机构',
        cmpType: 'common',
        tag: 'FunctionalTree',
        tagIcon: 'iconprocess_common_department_icon',
        formId: '',
        rules: [
            {
                required: false,
                message: ' '
            }
        ],
        options: { multiple: false }
    },
    {
        key: 'Select',
        label: '联系人',
        cmpType: 'common',
        tag: 'ContactsInput',
        tagIcon: 'iconprocess_common_contact-icon',
        formId: '',
        rules: [
            {
                required: false,
                message: '请输入'
            }
        ],
        options: {
            placeholder: '请输入'
        },
        isSummary: false
    },
    {
        key: 'Link',
        label: '超链接',
        cmpType: 'common',
        tag: 'Link',
        tagIcon: 'iconprocess_common_hyperlink_icon',
        formId: '',
        rules: [],
        options: {},
        linkUrl: '',
        linkText: '链接文本',
        noValue: true
    }
];
